package com.sinosoft.dsp.component.bpm.viewbean.activity.part;

import com.sinosoft.dsp.component.bpm.service.core.BpmSelectItemsService;
import com.sinosoft.dsp.component.bpm.viewbean.activity.BpmAbstractActivityPartEditViewBean;
import com.sinosoft.dsp.component.bpm.viewbean.activity.IBpmActivityPartEditViewBean;
import com.sinosoft.dsp.system.core.exception.SinoException;
import com.sinosoft.dsp.system.to.IGenericTO;

public class BpmActivityAffixesViewBean extends
		BpmAbstractActivityPartEditViewBean implements
		IBpmActivityPartEditViewBean {

	// 附件操作类型
	public static final String FIELD_AFFIX_OPERATION_TYPE = "affixOperationType";

	// 最小上传数(INT)
	public static final String FIELD_AFFIX_MIN_NUMBER = "minNum";

	// 最大上传数(INT)
	public static final String FIELD_AFFIX_MAX_NUMBER = "maxNum";

	@Override
	public void init(IGenericTO tos) throws SinoException {
		super.init(tos);

		this.addField(FIELD_AFFIX_OPERATION_TYPE,
				BpmSelectItemsService.SELECT_ITEM_AFFIXTYPE_DEFAULT);

		this.addField(FIELD_AFFIX_MIN_NUMBER, "0");

		this.addField(FIELD_AFFIX_MAX_NUMBER, "0");
	}
}
